import subprocess

import psutil


mem = psutil.virtual_memory()

print((mem.total, mem.used))


p = subprocess.Popen("ps aux| grep '172.16.8.48' | grep -v grep", shell=True, stdout=subprocess.PIPE).communicate()
s = p[0]
print(len(s))
